<!--{template 'admin/header'}-->
<!-- Container -->
<div id="container">
  <div class="shell">
    <!-- Main -->
    <div id="main">
      <div class="cl">&nbsp;</div>
      <!-- Content -->
      <div id="content">
        <!-- Box -->
        <div class="box">
          <!-- Box Head -->
          <div class="box-head">
            <h2 class="left">BOSS得分设定</h2>
            <div class="right">
            
              <label>DKP分类</label>
              <select class="field small-field" id="dkpfilter" onchange="location.href='./?admin/dkp/boss&dkpid='+$(this).val();" />
              <option value="0">全部</option>
              <!--{echo html_options($opt_dkp, $dkp[d_id])}-->
              </select>
             
              <!--input type="submit" class="button" value="过滤" onclick="bossfilter();" /-->
            
            </div>
          </div>
          <!-- End Box Head -->
          <!-- Table -->
          <div class="table">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
			  	<th width="26"></th>
                <th>名称</th>
                <th>分类</th>
                <th>DKP分数</th>
                <th>注释</th>
                <th width="110" class="ac">设置</th>
              </tr>
			  <!--{loop $rows $row}-->
              <tr class="$row[css]">
			  	<td><img src="./cacheimg.php?img={echo base64_encode($row[b_img])}" width="32" height="32"></td>
                <td>$row[b_name]</td>
                <td>$opt_dkp[$row[dkp_id]]</td>
                <td>$row[b_dkp]</td>
                <td><h3>$row[b_cmt]</h3></td>
                <td><a href="./?admin/dkp/boss&bossid=$row[b_id]#editform" class="ico edit">改</a> <a href="./?admin/dkp/delboss&bossid=$row[b_id]" class="ico del">删</a></td>
              </tr>
			  <!--{/loop}-->
            </table>
            <!-- Pagging -->
            <div class="pagging">
              <div class="left">共有{echo $pager->tRow}条记录</div>
              <div class="right"><!--{echo $pager->GetFullSide()}--></div>
            </div>
            <!-- End Pagging -->
          </div>
          <!-- Table -->
        </div>
        <!-- End Box -->
        <!-- Box -->
        <div class="box">
          <!-- Box Head -->
          <div class="box-head">
            <h2>BOSS新增/修改</h2>
          </div>
          <!-- End Box Head -->
          <form action="#" method="post" id="editform">
            <!-- Form -->
            <div class="form">
             <table width="100%" border="0" cellspacing="4" cellpadding="2">
			  <tr>
				<td width="15%"><label>BOSS名
				  <input name="bossid" type="hidden" id="bossid" value="$boss[b_id]" />
				</label></td>
				<td width="85%"><input name="b_name" type="text" class="field size3" id="b_name" value="$boss[b_name]" /></td>
			  </tr>
			  <tr>
				<td><label>DKP分类</label></td>
				<td>
					<select name="dkp_id" class="field size2" id="dkp_id">
					  <!--{echo html_options($opt_dkp, $boss[dkp_id])}-->
					</select>				</td>
			  </tr>
			  <tr>
			    <td><label>得分</label></td>
			    <td><input name="b_dkp" type="text" class="field size2" id="b_dkp" value="$boss[b_dkp]" /></td>
			    </tr>
			  <tr>
			    <td><label>图标地址(可选)</label></td>
			    <td><input name="b_img" type="text" class="field size1" id="b_img" value="$boss[b_img]" /></td>
			    </tr>
			  <tr>
			    <td><label>npc_id(可选)</label></td>
			    <td><input name="npc_id" type="text" class="field size2" id="npc_id" value="$boss[npc_id]" /></td>
			    </tr>
			  <tr>
				<td><label>注释(可选)</label></td>
				<td><textarea name="b_cmt" cols="50" rows="15" class="field1 size1" id="b_cmt">$boss[b_cmt]</textarea></td>
			  </tr>
			</table>
            </div>
            <!-- End Form -->
            <!-- Form Buttons -->
            <div class="buttons">
              <input type="submit" class="button" value="提交修改" />
            </div>
            <!-- End Form Buttons -->
          </form>
        </div>
        <!-- End Box -->
      </div>
      <!-- End Content -->
      <!-- Sidebar -->
	  <!--{template 'admin/dkp_side'}-->
	  <!-- End Sidebar -->
      <div class="cl">&nbsp;</div>
    </div>
    <!-- Main -->
  </div>
</div>
<!-- End Container -->
<!--{template 'admin/footer'}-->
<script type="text/javascript">


</script>
